You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This update provides developers with more control over group metadata through app-specific data, improves message querying capabilities with new sorting options, and enhances archive functionality. The changes to syncAllConversations() provide better visibility into the sync process, while the null-safety improvements in ffiRevokeAllOtherInstallationsSignatureText() prevent potential runtime errors. These enhancements support more sophisticated messaging applications with better data management capabilities.
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
Prepare v1.6.2 and change Conversations.syncAllConversations to return GroupSyncSummary with numEligible and numSynced, add message sorting and inserted-time filters across DM/Group queries, and include referenceInboxId in ReactionV2 parsing/output
Adds structured sync results via GroupSyncSummary, introduces sortBy, insertedAfterNs, and insertedBeforeNs to message queries and JSON wrappers, exposes group appData read/write, surfaces insertedAtNs on messages, and updates reactionV2 to parse/output referenceInboxId.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
TL;DR
Upgraded XMTP SDK to version 4.6.2 with new features for group management, message sorting, and archive options.
What changed?
org.xmtp:android:4.6.1toorg.xmtp:android:4.6.2-rc1XMTP (4.6.1)toXMTP (4.6.2-rc3)groupAppData()andupdateGroupAppData()sortBy,insertedAfterNs, andinsertedBeforeNssyncAllConversations()to return aGroupSyncSummaryobject withnumEligibleandnumSyncedpropertiesffiRevokeAllOtherInstallationsSignatureText()returnundefinedwhen there are no installations to revokeexcludeDisappearingMessagesoption tocreateArchive()referenceInboxIdin reaction contentHow to test?
Test group app data:
Test message sorting by insertion time:
Test sync summary:
Test archive with disappearing messages excluded:
Why make this change?
This update provides developers with more control over group metadata through app-specific data, improves message querying capabilities with new sorting options, and enhances archive functionality. The changes to
syncAllConversations()provide better visibility into the sync process, while the null-safety improvements inffiRevokeAllOtherInstallationsSignatureText()prevent potential runtime errors. These enhancements support more sophisticated messaging applications with better data management capabilities.